﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace sy2_4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int n1, n2, n3, temp;
        string s;

        private void button2_Click(object sender, EventArgs e)
        {
            n1 = int.Parse(textBox1.Text);
            n2 = int.Parse(textBox2.Text);
            n3 = int.Parse(textBox3.Text);

            if (n1 > n2)
            {
                temp = n1;
                n1 = n3;
                n3 = temp;
            }
            if (n2 > n3)
            {
                temp = n1;
                n1 = n3;
                n3 = temp;

            }
            if (n3 > n1)
            {
                temp = n2;
                n2 = n3;
                n3 = temp;
            }
            s = n1.ToString() + "<" + n2.ToString() + "<" + n3.ToString();
            textBox4.Text = s;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            n1 = int.Parse(textBox1.Text);
            n2 = int.Parse(textBox2.Text);
            n3 = int.Parse(textBox3.Text);


            if (n1 < n2)
            {
                temp = n1;
                n1 = n3;
                n3 = temp;
            }
            if (n1 < n3)
            {
                temp = n1;
                n1 = n3;
                n3 = temp;

            }
            if (n2 < n3)
            {
                temp = n2;
                n2 = n3;
                n3 = temp;
            }
            s = n1.ToString() + "> " + n2.ToString() + ">" + n3.ToString();
            textBox4.Text = s;
        }

    }
}
